home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3n / socketpair.z / socketpair
Encoding:
Text File  |  1998-10-20  |  3.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssoooocccckkkkeeeettttppppaaaaiiiirrrr((((3333NNNN))))                                                  ssssoooocccckkkkeeeettttppppaaaaiiiirrrr((((3333NNNN))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_oooo_cccc_kkkk_eeee_tttt_pppp_aaaa_iiii_rrrr - create a pair of connected sockets
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_ssss_oooo_cccc_kkkk_eeee_tttt_...._hhhh_>>>>
  14.  
  15.      _iiii_nnnn_tttt _ssss_oooo_cccc_kkkk_eeee_tttt_pppp_aaaa_iiii_rrrr_((((_iiii_nnnn_tttt _dddd_,,,, _iiii_nnnn_tttt _tttt_yyyy_pppp_eeee_,,,, _iiii_nnnn_tttt _pppp_rrrr_oooo_tttt_oooo_cccc_oooo_llll_,,,, _iiii_nnnn_tttt _ssss_vvvv_[[[[_2222_]]]]_))))_;;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The _ssss_oooo_cccc_kkkk_eeee_tttt_pppp_aaaa_iiii_rrrr library call creates an unnamed pair of connected sockets
  19.      in the specified address family _d, of the specified _t_y_p_e, and using the
  20.      optionally specified _p_r_o_t_o_c_o_l.  The descriptors used in referencing the
  21.      new sockets are returned in _s_v[0] and _s_v[1].  The two sockets are
  22.      indistinguishable.
  23.  
  24. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  25.      _ssss_oooo_cccc_kkkk_eeee_tttt_pppp_aaaa_iiii_rrrr returns a -1 on failure, otherwise it returns the number of
  26.      the second file descriptor it creates.
  27.  
  28. EEEERRRRRRRROOOORRRRSSSS
  29.      The call succeeds unless:
  30.  
  31.      _EEEE_MMMM_FFFF_IIII_LLLL_EEEE              Too many descriptors are in use by this process.
  32.  
  33.      _EEEE_AAAA_FFFF_NNNN_OOOO_SSSS_UUUU_PPPP_PPPP_OOOO_RRRR_TTTT        The specified address family is not supported on this
  34.                          machine.
  35.  
  36.      _EEEE_PPPP_RRRR_OOOO_TTTT_OOOO_NNNN_OOOO_SSSS_UUUU_PPPP_PPPP_OOOO_RRRR_TTTT     The specified protocol is not supported on this
  37.                          machine.
  38.  
  39.      _EEEE_OOOO_PPPP_NNNN_OOOO_SSSS_UUUU_PPPP_PPPP_OOOO_RRRR_TTTT        The specified protocol does not support creation of
  40.                          socket pairs.
  41.  
  42.      _EEEE_NNNN_OOOO_MMMM_EEEE_MMMM              There was insufficient user memory for the operation
  43.                          to complete.
  44.  
  45.      _EEEE_NNNN_OOOO_SSSS_RRRR               There were insufficient STREAMS resources for the
  46.                          operation to complete.
  47.  
  48. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  49.      _pppp_iiii_pppp_eeee(2), _rrrr_eeee_aaaa_dddd(2), _wwww_rrrr_iiii_tttt_eeee(2)
  50.  
  51. NNNNOOOOTTTTEEEESSSS
  52.      This call is currently implemented only for the _AAAA_FFFF______UUUU_NNNN_IIII_XXXX address family.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.